<div class="portlet">
    <div class="portlet-actions">
        <button class="btn blue btn-sm" ng-click="instructionGrid.addNotice()"><i class="fa fa-plus"></i> 新增</button>
    </div>
    <form class="portlet-search-body" name="queryForm">
        <input type="text" class="form-control search-item" ng-model="title" placeholder="公告标题">
        <!-- <select class="form-control search-item" ng-model="noticeType"
                ng-options="opt.value as opt.name for opt in options.noticetype">
            <option value="" disabled selected hidden>-- 类型 --</option>
        </select> -->

        <div class="search-item">
            <button class="btn btn-sm query" ng-click="instructionGrid.query();"><i class="fa fa-search"></i> 查询</button>
            <button class="btn btn-sm reset" ng-click="instructionGrid.reset();"><i class="fa fa-eraser"></i> 重置</button>
        </div>
    </form>
    <div class="portlet-body">
        <table ed-grid="instructionGrid" class="table table-striped table-bordered table-advance table-hover"
               data-options="url: 'instruction/query.do', modelText: '折扣方案', form: 'queryForm', modal: 'modal'">
            <thead>
            <tr>
                <th data-options="field: '_index'"></th>
                <th data-options="field: 'title'">公告标题</th>
                <th data-options="field: 'makeTime'">创建时间</th>
                <th data-options="field: 'instructionOrder'">排序</th>
               <!--  <th data-options="field: 'content'">须知内容</th> -->
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>



<div ed-modal="instructionAddModal" data-options="title: '折扣方案', static: true, width: 920, defaultButton:false,onHidden:'reset'">
    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
            <div class="form-group">
                <label class="col-md-2 control-label"><span class="required">*</span>公告标题</label>
                <div class="col-md-8">
                    <input type="text" class="form-control" name="title"
                           ng-model="instruction.title" required>
                </div>
            </div>
            <!-- <div class="form-group">
                 <label class="col-md-2 control-label"><span class="required">*</span>类型</label>
                 <div class="col-md-8">
                     <select class="form-control" name="type" ng-model="notice.type"
                             ng-options="opt.value as opt.name for opt in options.userstate"
                             required></select>
                 </div>
            </div> -->
            <div class="form-group">
                <label class="col-md-2 control-label">须知内容</label>
                <div class="col-md-8">
    				<div ed-editor ng-model="instruction.content" data-options="height: 250"></div>
				</div>
            </div>
            <div class="form-group">
                   <label class="col-md-2 control-label"><span class="required">*</span>客户端显示内容</label>
                   <div class="col-md-6">
                            <textarea  placeholder="公告内容" ng-model="instruction.androidContent" name="androidContent"  rows="40" cols="80" style="height: 200px;" required></textarea>
                   </div>
             </div>
             <div class="form-group">
                <label class="col-md-2 control-label"><span class="required">*</span>排序值</label>
                <div class="col-md-8">
                    <input type="text" class="form-control" name="instructionOrder" ed-validate="integer"
                           ng-model="instruction.instructionOrder" required>
                </div>
            </div>
        </div>
        <div class="form-actions">
            <button type="button" class="btn blue" w5c-form-submit="instructionGrid.save()" >
                <i class="fa fa-save"></i> 保存
            </button>
            <!-- <button type="button" class="btn default" ng-click="noticeGrid.cancel();" >
                <i class="fa fa-times"></i> 取消
            </button> -->
            <button type="button" class="btn blue" ng-click="instructionGrid.cancel();">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>




